#pragma once
#include "audionode.h"
class CAR :
	public CAudioNode
{
public:
	CAR(void);
	~CAR(void);

	//! Start audio generation
    virtual void Start();

    //! Generate one frame of audio
    virtual bool Generate();

	void SetSource(CAudioNode * source) {m_source = source;}

	void SetDuration(double d) {m_duration = d;}
	void SetAttack(double a) {m_attack = a;}
	void SetRelease(double r) {m_release = r;}

private:
	double m_attack;
	double m_release;
	double m_duration;
	double m_time;
	CAudioNode * m_source;
};

